#!/usr/bin/python
#add queue datastructure
#"Lynn Lin <lynn.lin@avocent.com>"

class queue(object):
        def __init__(self):
                self.que = []
        def __len__(self):
                return len(self.que)
	def QueueEmpty(self):
		return self.__len__() 
        def EnQueue(self,value):
                self.que.insert(0,value)
        def DeQueue(self):
		try:
                	return self.que.pop()
	        except:
			raise OverflowError,"queue is empty,no value to pop"
